/*
 * Copyright © 2017 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */

package cn.hermit.dubbo;

import com.alibaba.dubbo.config.ApplicationConfig;
import com.alibaba.dubbo.config.ConsumerConfig;
import com.alibaba.dubbo.config.ModuleConfig;
import com.alibaba.dubbo.config.MonitorConfig;
import com.alibaba.dubbo.config.ProtocolConfig;
import com.alibaba.dubbo.config.ProviderConfig;
import com.alibaba.dubbo.config.RegistryConfig;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author JackGao 高建国
 * @description //TODO 设计说明
 * @date 3/6/2017
 */
public class DubboProperties {

    public static final String PREFIX = "hermit.dubbo";

    private Map<String, ApplicationConfig> application = new LinkedHashMap<>();

    private Map<String, ProtocolConfig> protocol = new LinkedHashMap<>();

    private Map<String, RegistryConfig> registry = new LinkedHashMap<>();

    private Map<String, ModuleConfig> module = new LinkedHashMap<>();

    private Map<String, ProviderConfig> provider = new LinkedHashMap<>();

    private Map<String, ConsumerConfig> consumer = new LinkedHashMap<>();

    private Map<String, MonitorConfig> monitor = new LinkedHashMap<>();

    private Map<String, DubboConfig> config = new LinkedHashMap<>();

    public Map<String, ApplicationConfig> getApplication() {
        return application;
    }

    public void setApplication(Map<String, ApplicationConfig> application) {
        this.application = application;
    }

    public Map<String, RegistryConfig> getRegistry() {
        return registry;
    }

    public void setRegistry(Map<String, RegistryConfig> registry) {
        this.registry = registry;
    }

    public Map<String, ProtocolConfig> getProtocol() {
        return protocol;
    }

    public void setProtocol(Map<String, ProtocolConfig> protocol) {
        this.protocol = protocol;
    }

    public Map<String, ModuleConfig> getModule() {
        return module;
    }

    public void setModule(Map<String, ModuleConfig> module) {
        this.module = module;
    }

    public Map<String, ProviderConfig> getProvider() {
        return provider;
    }

    public void setProvider(Map<String, ProviderConfig> provider) {
        this.provider = provider;
    }

    public Map<String, ConsumerConfig> getConsumer() {
        return consumer;
    }

    public void setConsumer(Map<String, ConsumerConfig> consumer) {
        this.consumer = consumer;
    }

    public Map<String, MonitorConfig> getMonitor() {
        return monitor;
    }

    public void setMonitor(Map<String, MonitorConfig> monitor) {
        this.monitor = monitor;
    }

    public Map<String, DubboConfig> getConfig() {
        return config;
    }

    public void setConfig(Map<String, DubboConfig> config) {
        this.config = config;
    }
}
